package org.mq.mymq.common.enums;

/**
 * @ClassName BrokerResponseCode
 * @Description
 * @Author jiarong_ye
 * @Date 2025/6/27 17:47
 * @Version 1.0
 */
public enum BrokerResponseCode {
    SEND_MSG_RESP(2001, "推送消息给Broker，响应code"),
    CONSUME_MSG_RESP(2002, "消费broker消息返回数据，响应code"),
    BROKER_UPDATE_OFFSET_RESP(2003, "broker更新消费offset，响应code"),
    CREATED_TOPIC_SUCCESS(2004,"创建topic成功，响应code"),
    START_SYNC_SUCCESS(2005,"主从开始已同步数据，响应code"),
    SLAVE_SYNC_RESP(2006,"从节点同步数据，响应code"),
    ;
    int code;
    String desc;

    BrokerResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
